import request from '@/utils/request';

// 分页获取评论
export function getMessage(page = 1, limit = 10) {
  return request({
    url: '/api/comment',
    method: 'get',
    params: {
      page,
      limit,
    }
  })
}
// 删除评论
export function deleteMessage(id) {
  return request({
    url: `/api/comment/${id}`,
    method: 'delete',
  })
}